# Contributor: Dmitry Zakharchenko <dmitz@disroot.org>
# Maintainer: Dmitry Zakharchenko <dmitz@disroot.org>
pkgname=py3-spotipy
_pkgname=spotipy
pkgver=2.23.0
pkgrel=1
pkgdesc="Light weight Python library for the Spotify Web API"
url="https://github.com/spotipy-dev/spotipy"
arch="noarch"
license="MIT"
depends="py3-requests py3-six py3-urllib3 py3-redis"
makedepends="py3-setuptools"
options="!check" # requires Spotify API Key
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/spotipy-dev/spotipy/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
52955fa3365d5153f19f60874ce8e96910ac8db783499e0e2ef2ab31127277844e24a045115dc522dd7b7535f7907de56da87e02a63b94ee7506b75c1e108e9b  py3-spotipy-2.23.0.tar.gz
"
